package org.csu.webjpetstoreback.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.csu.webjpetstoreback.config.CommonResponse;
//import org.csu.webjpetstoreback.model.Account;
import org.csu.webjpetstoreback.model.Orders;

import java.util.List;

public interface OrdersService extends IService<Orders> {

    public CommonResponse<Orders> GetOrdersByID(int orderId);

    public CommonResponse<List<Orders>> GetOrders();

    public CommonResponse<Orders> PostOrders(Orders orders);

    public CommonResponse<Orders> PutOrders(Orders orders);

    public CommonResponse<Orders> DeleteOrders(int orderId);

    public CommonResponse<List<Orders>> GetOrdersByUserName(String username);

    public Orders GetOrdersByOrderId(int orderId);

    public String PutOrdersByOrderId(int orderId);

}
